
<script>
	import { mapState } from 'vuex';
	
	var _this;
	export default {
		onLaunch: function() {
				// #ifdef APP-PLUS
			// 锁定屏幕方向
			plus.screen.lockOrientation('portrait-primary'); //锁定
			
			// #endif
			console.log('App Launch')
		},
		methods: {
			show(){
				
				_this.$bus.$emit("show",1);
			}
		},
		onLoad() {
			
			_this = this;
		},
		onShow: function() {
			
			console.log(this.$store.state)
			
			this.$store.commit("heartmsg",0)
		console.log(this.$store.state.heartmsg)
			console.log('App Show')
		},
		onHide: function() {
			this.$store.commit("heartmsg",1)
			// _this.$bus.$emit("show",0)
			console.log('App Hide')
			console.log(this.$store.state.heartmsg)
		},
		onUnload: function() {
			console.log('onUnload')
		},
	}
</script>

<style>
	/*每个页面公共css */
	@import url("common/css/iconfont.css");
	@import url("common/css/iconfont1.css");
	@import url("common/css/main.css");
	
</style>
